package com.yidu.hbats.dao;

import com.yidu.hbats.model.AtsEmpLeader;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AtsEmpLeaderMapper {
    /**
     *
     * @mbg.generated 2019-10-29
     */
    int deleteByPrimaryKey(Integer leaderId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insert(AtsEmpLeader record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int insertSelective(AtsEmpLeader record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    AtsEmpLeader selectByPrimaryKey(Integer leaderId);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKeySelective(AtsEmpLeader record);

    /**
     *
     * @mbg.generated 2019-10-29
     */
    int updateByPrimaryKey(AtsEmpLeader record);

    /**
     * 查询所有 带分页
     * @param atsEmpLeader
     * @return
     */
    List<AtsEmpLeader> selectAll(AtsEmpLeader atsEmpLeader);


    /**
     * 查询行数
     * @param atsEmpLeader
     * @return
     */
    int selectCount(AtsEmpLeader atsEmpLeader);

    /**
     * 查询所有 不带分页
     * @param atsEmpLeader
     * @return
     */
    List<AtsEmpLeader> findAll(AtsEmpLeader atsEmpLeader);
}